<?php
/**
 * Created by PhpStorm.
 * User: 颖inv
 * Date: 2016/9/28
 * Time: 20:41
 */
header('Content-type:text/html;charset=utf-8');
?>
<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <title>九九乘法表</title>
        <style>
            .box{width:610px; height: 310px; background-color: #DADADA; padding: 5px;}
            table{width: 600px; height: 300px; margin: 5px;}
            table,tr,td{background-color: white;}
        </style>
    </head>
    <body>
        <div class="box">
            <?php
            echo '<table border="1">';
            for ($i=1;$i<10;++$i){
                echo '<tr>';
                for($j=1;$j<=$i;++$j){
                    echo "<td>{$j}*{$i}=".$j*$i."</td>";
                }
                echo '</tr>';
            }
            echo '</table>';
            ?>
        </div>
    </body>
</html>
